package yesjava;

import java.util.ArrayList;
import java.util.List;

public class MainClone {
    public static void main(String[] args) throws Exception {
        Dog dog = new Dog("黑色", "呵呵", true);
        List<Dog> list = new ArrayList<>();
        long l = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            Dog clone = (Dog) MyUtils.deepClone(dog);
            list.add(clone);
        }
        System.out.println((System.currentTimeMillis() - l) + " 毫秒");
        System.out.println(list.size());
    }


}
